
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>ujoku-service</title>
    <%@ include file="common/common_css.jsp"%>
</head>
<body>
    <div id="tabs" class="ui-widget-content">
        <ul>
            <li><a href="#tabs-1">Initial</a></li>
        </ul>
        <div id="tabs-1" style="width: 1400px">
            <div style="float: left; width: 700px;">
                <div>
                    ClientId:
                    <select id="selClient">
                        <s:forEach items="${clientList}" var="item">
                           <option key="${item.secretKey}">${item.clientName}</option>
                        </s:forEach>
                    </select>
                    SecretKey:<input class="textbox" type="text" id="secretKey"/>
                </div>

                <div>
                    <input type="button" value="Create Visitor ID" onclick="visitor.create();"/>
                    VisitorID:<input class="textbox" type="text" id="visitorId"/>&nbsp;&nbsp;
                </div>

                <div>
                    <strong>[Goods]</strong><br/>
                    GoodsId:<input class="textbox" type="text" id="goodsId" style="width: 100px;"/>
                        <input type="button" value="Get Goods By Id" onclick="goods.getById();"/>
                </div>
                <div>
                    <strong>[导航栏]</strong><br/>
                    <input type="button" value="Top nav" onclick="nav.getTopNav();"/><br/>
                </div>
                <div>
                    <strong>[酒庄]</strong><br/>
                    id:<input class="textbox" type="text" id="wineryId" style="width: 100px;"/>
                    <input type="button" value="get" onclick="winery.getById();"/><br/>
                </div>
                <div>
                    <strong>[Search]</strong><br/>
                    FreeText: <input class="textbox" type="text" id="freeText" style="width: 100px;"/>
                    产地:<input class="textbox" type="text" id="country" style="width:100px;"/>
                    等级:<input class="textbox" type="text" id="grade" style="width:100px;"/>
                    酒庄ID:<input class="textbox" type="text" id="winery" style="width:100px;"/>
                    成分:<input class="textbox" type="text" id="ingredient" style="width:100px;"/>
                    CategoryId:<input class="textbox" type="text" id="categoryId" style="width: 100px;"/>
                    PriceRange:<input class="textbox" type="text" id="minPrice" style="width: 50px;"/> --<input class="textbox" type="text" id="maxPrice" style="width: 50px;"/>

                    New:<input type="checkbox" id="isNew"/>
                    推荐:<input type="checkbox" id="isRecommended"/>
                    爆款清仓:<input type="checkbox" id="isHot"/>
                    Sort:<input class="textbox" type="text" id="order" style="width: 100px;"/>
                    <input type="button" value="Search" onclick="goods.search();"/><br/>
                    <input type="button" value="Get Countrys" onclick="country.getAll();"/>
                </div>

                <div>
                    <strong>[Article]</strong><br/>
                    ArticleId:<input class="textbox" type="text" id="articleId" style="width: 100px;"/>
                    <input type="button" value="Get Article By Id" onclick="article.getById();"/>
                </div>

                <div>
                    <strong>[Login]</strong><br/>
                    UserName:<input class="textbox" type="text" id="userName" style="width: 100px;"/>
                    Password:<input class="textbox" type="password" id="password" style="width: 100px;"/>
                    <input type="button" value="Login" onclick="member.login();"/>
                    <input type="button" value="Logout" onclick="member.logout();"/>
                </div>
                <div>
                    <strong>[Member]</strong><br/>
                    Phone:<input type="text" id="c_phone" style="width: 100px;"/>
                    <input type="button" value="sendSMS" onclick="member.sendSMS();"/>
                    UserName:<input type="text" id="c_userName" style="width: 100px;"/>
                    Password:<input type="text" id="c_password" style="width: 100px;"/>
                    Captcha:<input type="text" id="c_captcha" style="width: 100px;"/>
                    <input type="button" value="Create" onclick="member.create();"/><br/>
                    <strong>[Find Password]</strong><br/>
                    UserName:<input type="text" id="u_userName" style="width: 100px;"/>
                    Password:<input type="text" id="u_password" style="width: 100px;"/>
                    Captcha:<input type="text" id="u_captcha" style="width: 100px;"/>
                    <input type="button" value="Update" onclick="member.update();"/>
                </div>
                <div>
                    <strong>[Favorite]</strong><br/>
                    <input type="button" value="my favorite" onclick="fav.show();"/><br/>
                    goodsId:<input type="text" id="fav_goods_id" style="width: 100px;" />
                    <input type="button" value="add favorite" onclick="fav.add();"/><br />
                    fav_id:<input type="text" id="fav_id" style="width: 100px"/>
                    <input type="button" value="remove favorite" onclick="fav.remove();"  />
                </div>
                <div>
                    <strong>[Cart]</strong><br/>
                    <input type="button" value="Show My Cart" onclick="cart.shoppingCart();" style="margin: 5px 0;"/><br/>
                    GoodsId:<input class="textbox" type="text" id="c_goodsId" style="width: 100px;"/>
                    qty:<input class="textbox" type="text" id="c_qty" style="width: 100px;"/>
                    mylistItemId: <input type="text" id="c_myListItemId" />
                    <input type="button" value="Add" onclick="cart.add();"/> <br/>
                    CartItemId:<input class="textbox" type="text" id="c_cartId2" style="width: 100px;"/>
                    qty:<input class="textbox" type="text" id="c_qty2" style="width: 100px;"/>
                    <input type="button" value="Update" onclick="cart.update();"/> <br/>

                    CartItemId: <input class="textbox" type="text" id="c_cartId" style="width: 100px;"/>
                    <input type="button" value="Delete" onclick="cart.delete();"/><br/>

                    <input type="button" value="checkout" onclick="cart.checkout();"/><br/>

                    物流方式:
                    <select id="c_shippingType">
                        <option value="0">物流</option>
                        <option value="1">自提</option>
                        <option value="2">存入私人酒窖</option>
                    </select>
                    <input type="button" value="set" onclick="cart.setDeliveryType();"/><br/>

                    addressId:<input type="text" id="c_addressId" style="width:100px;"/>
                    <input type="button" value="delete address" onclick="cart.setShippingAddress();"/><br/>

                </div>

                <div >
                    <strong>[url解析]</strong><br/>
                    url:<input class="textbox" type="text" id="txtUrl" style="width: 200px;"/>

                    <input type="button" value="parse" onclick="urlHelper.parse();"/><br/>
                </div>
             </div>
            <div style="float:left; margin-left:50px;width:600px">
                <strong>[Address]</strong><br/>
                联系人:<input type="text" id="a_contact" style="width: 100px;"/>
                phone:<input type="text" id="a_phone" style="width: 100px;"/>
                shippingAddress: <input type="text" id="a_shippingAddress" style="width: 100px;"/>
                province: <input type="text" id="a_province" style="width: 100px;"/>
                city: <input type="text" id="a_city" style="width: 100px;"/>
                county: <input type="text" id="a_county" style="width: 100px;"/>
                <input type="button" value="Create" onclick="address.create();"/><br/>
                <input type="button" value="Get member address" onclick="address.getMemberAddress();"/><br/>
                addressId:<input type="text" id="a_addressId" style="width:100px;"/>
                <input type="button" value="delete address" onclick="address.delete();"/><br/>
            </div>

            <div style="float: left; margin-left: 50px;width: 600px">
                <strong>[Order]</strong><br/>
                <input type="button" value="Place Order" onclick="order.placeOrder();" />
            </div>
            <div style="float: left; margin-left: 50px;width: 600px">
                orderId:<input type="text" id="op_orderId" style="width: 100px;"/>
                paymentType:
                <select id="o_paymentType" style="width: 100px;">
                    <option value="UnionPay">UnionPay</option>
                    <option value="Alipay">Alipay</option>
                </select>
                <input type="button" value="create payment" onclick="order.createPayment();" />
                <input type="button" value="get payment form" onclick="order.getPaymentForm();" />

            </div>
            <div style="float: left; margin-left: 50px;width: 600px">
                pageIndex:<input type="text" id="o_pageIndex" style="width: 100px;" value="0"/>
                pageSize:<input type="text" id="o_pageSize" style="width: 100px;" value="10"/>
                <input type="button" value="get Order List" onclick="order.getOrderList();" />
            </div>
            <div style="float: left; margin-left: 50px;width: 600px">
                orderId:<input type="text" id="o_orderId" style="width: 100px;"/>

                <input type="button" value="get Order Detail" onclick="order.orderDetail();" />
                <input type="button" value="cancel order" onclick="order.cancelOrder();" />
            </div>


            <div style="float: left; margin-left: 50px;width: 600px">
                <strong>[私人酒窖]</strong><br/>
                onSale :<input type="checkbox" id="m_onSale" />
                pageIndex:<input type="text" id="m_pageIndex" style="width: 100px;" value="0"/>
                pageSize:<input type="text" id="m_pageSize" style="width: 100px;" value="10"/>

                <input type="button" value="get my List" onclick="myList.getMyList();" /><br/>
                <input type="button" value="get Repurchase List" onclick="myList.getRepurchaseList();" /><br/>

                onSale :<input type="checkbox" id="m_u_onSale" />
                mylistItemId:<input type="text" id="m_myListItemId" style="width: 100px;" />
                price:<input type="text" id="m_myListItemPrice" style="width: 100px;" />
                <input type="button" value="上/下架" onclick="myList.onSale();" />
                <input type="button" value="回购" onclick="myList.repurchase();" /><br/>
                <input type="text" id="m_pId" style="width: 100px;" />
                <input type="button" value="on sale Item" onclick="myList.getOnSaleItemByPid();" /><br/>

                <strong>[他人私人酒窖]</strong><br/>
                memberId :<input type="text" id="mc_memberId" />
                onSale :<input type="checkbox" id="mc_onSale" />
                pageIndex:<input type="text" id="mc_pageIndex" style="width: 100px;" value="0"/>
                pageSize:<input type="text" id="mc_pageSize" style="width: 100px;" value="10"/>
                <input type="button" value="get my List" onclick="myList.getCellar();" /><br/>

                <strong>[好友私人酒窖]</strong><br/>
                pageIndex:<input type="text" id="mf_pageIndex" style="width: 100px;" value="0"/>
                pageSize:<input type="text" id="mf_pageSize" style="width: 100px;" value="10"/>
                <input type="button" value="get friend List" onclick="myList.getFriend();" /><br/>
            </div>

            <div style="float: left; margin-left: 50px;width: 600px">
                <strong>[充值]</strong><br/>

                amount:<input type="text" id="r_amount" style="width: 100px;" />
                <input type="button" value="create" onclick="recharge.create();" /><br/>

                pageIndex:<input type="text" id="r_pageIndex" style="width: 100px;" value="0"/>
                pageSize:<input type="text" id="r_pageSize" style="width: 100px;" value="10"/>

                <input type="button" value="get my List" onclick="recharge.getList();" /><br/>

            </div>

            <div style="float: left; margin-left: 50px;width: 600px">
                <strong>[好友]</strong><br/>

                q:<input type="text" id="f_q" style="width: 100px;" />
                number list:<input type="text" id="f_numberList" style="width: 100px;" />
                pageIndex:<input type="text" id="f_pageIndex" style="width: 100px;" value="0"/>
                pageSize:<input type="text" id="f_pageSize" style="width: 100px;" value="10"/>

                <input type="button" value="search friend" onclick="friend.getList();" /><br/>

                memberId:<input type="text" id="f_id" style="width: 100px;" />
                <input type="button" value="add friend" onclick="friend.add();" /><br/>
                <input type="button" value="remove friend" onclick="friend.remove();" /><br/>

                pageIndex:<input type="text" id="fm_pageIndex" style="width: 100px;" value="0"/>
                pageSize:<input type="text" id="fm_pageSize" style="width: 100px;" value="10"/>

                <input type="button" value="get my friend" onclick="friend.searchFriend();" /><br/>
            </div>

            <div style="float: left; margin-left: 50px;width: 600px">
                <strong>[消息]</strong><br/>
                <input type="button" value="get message" onclick="message.getList();" /><br/>

                <strong>[活动]</strong><br/>
                <input type="button" value="get message" onclick="activity.getActivity();" /><br/>
            </div>

            <div style="float: left; margin-left: 50px;width: 600px">
                <strong>[第三方登录]</strong><br/>
                id:<input class="textbox" type="text" id="thirdPartyId" style="width: 100px;"/>
                <input type="button" value="login" onclick="thirdPartyLogin.tLogin();"/><br/>
            </div>

            <div style="float: left; margin-left: 50px;width: 600px">
                <strong>[第三方登录绑定]</strong><br/>
                id:<input class="textbox" type="text" id="thirdPartyLoginId" style="width: 100px;"/>
                userName:<input class="textbox" type="text" id="thirdPartyUserName" style="width: 100px;"/>
                password:<input class="textbox" type="text" id="thirdPartyPassword" style="width: 100px;"/>
                <input type="button" value="login" onclick="thirdPartyLogin.tBind();"/><br/>
            </div>




        </div>

        <div style="clear: both;"></div>
    </div>

    <div style="margin-top: 7px; height:27px;" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
        <b>Requested URL: </b>
        <input type="text" id="requestedUrl" style="width:70%;" domain="<%=  request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath()%>">
    </div>

    <div id="d_param" class="ui-tabs ui-corner-all">
        <div style="float:left;width:300px; margin:0 10px 10px 0;height: 400px;" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
            <strong style="margin-left: 5px;">HTTP Header:</strong>
            <table id="tb_h_param">
                <tr>
                    <td>ClientId:</td>
                    <td><input type="text" id="p_clientId"/></td>
                </tr>
                <tr>
                    <td>SecretKey:</td>
                    <td><input type="text" id="p_secretKey"/></td>
                </tr>
                <tr>
                    <td colspan="2"><textarea id="p_data" rows="20" cols="35"></textarea></td>
                </tr>
            </table>
        </div>

        <div style="margin-left:315px; z-index:9999; position:relative;">

            <div id="resultShow"></div>
        </div>
    </div>



</body>
<%@ include file="common/common_js.jsp"%>

</html>
